<div ms-controller="stockSearch" class="stock-search">
  <p class="path">您现在的位置为：<span ms-text="@breadcrumb">固办-领用单管理</span></p>
  <form class="form-inline" onsubmit="return false;">
    <div class="search-group">
      <label class="search-group-title first">账册查询：</label>
      <div class="search-conditions">
        <div>
          <label>选择账户：<input type="text" class="form-control"
                                       ms-duplex="@accountName"
                                       ms-keydown="@chooseCondition($event,0)"></label>
          <label>选择账册：<input type="text" class="form-control"
                                       ms-duplex="@booksName"
                                       ms-keydown="@chooseCondition($event,1)"></label>
        </div>
        <div>
          <label>选择大类：<input type="text" class="form-control"
                                       ms-duplex="@goodsBigCatName"
                                       ms-keydown="@chooseCondition($event,2)"></label>
          <label>选择中类：<input type="text" class="form-control"
                                       ms-duplex="@goodsMidCatName"
                                       ms-keydown="@chooseCondition($event,3)"></label>
          <label>选择小类：<input type="text" class="form-control"
                                       ms-duplex="@goodsSmallCatName"
                                       ms-keydown="@chooseCondition($event,4)"></label>
          <button class="btn btn-sm btn-primary" ms-click="@search">查询</button>
          <button class="btn btn-sm btn-primary" ms-click="@excelExport">导出</button>
          <button type="button" class="btn btn-info btn-sm last" ms-click="@back">返回</button>
        </div>
      </div>
    </div>
    <div class="search-group">
      <label class="search-group-title">明细查询：</label>
      <div class="search-conditions">
        <div>
          <label>选择物品：<input type="text" class="form-control"
                                       ms-duplex="@goodName"
                                       ms-keydown="@chooseGoods($event)"></label>
          <button type="button" class="btn btn-sm btn-primary" ms-click="@search">查询该物品</button>
          <span class="search-counts" ms-if="@showCounts">本次查询结果共计<span ms-text="@counts"></span>条</span>
        </div>
      </div>
    </div>
  </form>
  <table class="table table-hover table-bordered table-condensed">
    <thead class="thead">
      <tr>
        <th></th>
        <th ms-for="($index,el) in @columnNames" ms-text="el"></th>
      </tr>
    </thead>
    <tbody class="tbody">
      <tr ms-for="($index,el) in @goods">
        <td></td>
        <td ms-for="valueName in @columnValueNames" ms-class="@showClass(el,valueName)" ms-text="@showValue(el,valueName)"></td>
      </tr>
    </tbody>
  </table>
  <!-- 分页插件 -->
  <div id="stockSearchPage"></div>
  <div class="clear"></div>
</div>